/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package BUS;

import Entity.Sach;
import java.util.ArrayList;

/**
 *
 * @author Dark_Knight
 */
public interface SachBUS {
    boolean add(Sach data);
    boolean subSoLuongTon(int maSach, int soLuong);
    
    ArrayList getAll();
    
    ArrayList findByTenSach(String name);
    ArrayList findByNXB(String name);
    ArrayList findByTheLoai(String name);
    ArrayList findByTacGia(String name);
    
    ArrayList getAllWithTenSach();
}
